import request from '@/utils/request'
// 单位挂接指标的单位保存
export function saveSummaryAgency(data) {
  return request({
    url: '/SalarySummaryAgencyController/saveSummaryAgency',
    method: 'post',
    data
  })
}


// 根据区划查找单位
export function getAgencys(query) {
  return request({
    url: '/SalarySummaryAgencyController/getAgencys',
    method: 'get',
    params: {
      query
    }
  })
}


export function getSummaryAgency(query) {
  return request({
    url: '/SalarySummaryAgencyController/getSummaryAgency',
    method: 'get',
    params: {
      query
    }
  })
}

// 根据绩效类型获得工资项
export function querySummaryAgency(query) {
  return request({
    url: '/SalarySummaryAgencyController/querySummaryAgency', 
    method: 'get',
    params: query
  })
}